Skip to content

Conversation

bnaecker
Copy link
Collaborator

  • Add an IpVersion type and attach to all IP Pool objects
  • Schema and data migration to add the version to IP Pools in the database
  • Add a services IP Pool for IPv6 addresses
  • Ensure we can only add ranges to pools of the same version

@bnaecker bnaecker marked this pull request as draft August 21, 2025 19:33
@bnaecker bnaecker force-pushed the add-ip-family-to-pools branch 3 times, most recently from 96477a9 to 7dad31f Compare August 23, 2025 00:21
@bnaecker
Copy link
Collaborator Author

This is an interesting failure mode. Seems like OPTE failed in a call to allocb(9F). cc @FelixMcFelix would you like an issue for this?

- Add an `IpVersion` type and attach to all IP Pool objects
- Schema and data migration to add the version to IP Pools in the
  database
- Add a services IP Pool for IPv6 addresses
- Ensure we can only add ranges to pools of the same version
- Fixes a bunch of knock-on effects of splitting out the pools by IP
  version
- Closes #8880
@bnaecker bnaecker force-pushed the add-ip-family-to-pools branch from 7dad31f to 3d4a484 Compare August 23, 2025 22:15
@FelixMcFelix
Copy link
Contributor

This is an interesting failure mode. Seems like OPTE failed in a call to allocb(9F). cc @FelixMcFelix would you like an issue for this?

That's an unpleasant one to hit! I've opened oxidecomputer/opte#840.

@bnaecker bnaecker marked this pull request as ready for review August 25, 2025 16:17
Copy link
Contributor

@david-crespo david-crespo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. I don't see any real issues. The only thing I would really recommend is making the sure the DB pool matches the authz pool in #8885 (comment).

- Helper IP Pool constructors
- Local SQL settings
- Simplify caching IP Pools when ensuring an external address
- Add sanity check that DB / Authz pool IDs match
@bnaecker bnaecker enabled auto-merge (squash) August 25, 2025 23:53
@bnaecker bnaecker merged commit 1c35870 into main Aug 26, 2025
16 checks passed
@bnaecker bnaecker deleted the add-ip-family-to-pools branch August 26, 2025 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants